package com.drawu.drawuspring.controller;


import com.drawu.drawuspring.domain.Result;
import com.drawu.drawuspring.domain.VO.UserVO;
import com.drawu.drawuspring.service.IFocusRecordService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 关注记录表 前端控制器
 * </p>
 *
 * @author hui
 * @since 2024-10-12
 */
@RestController
@RequestMapping("/focus-record")
@Tag(name = "关注记录表", description = "关注记录表相关接口")
@RequiredArgsConstructor
public class FocusRecordController {

    private final IFocusRecordService focusRecordService;

    @Operation(summary = "批量查询用户关注的记录状态")
    @GetMapping("/list")
    public Result<List<UserVO>> likedRecordList() {
        return focusRecordService.getLikedRecordList();
    }

}
